<div th:fragment="head" th:id="head">
    &copy; 头文件[模板]
</div>
<!--函数型模板-->
<div th:fragment="footer(version)" th:attr="_id='footerid'">
    &copy; 函数型模板&nbsp;&nbsp;[[${version}]]
</div>
<div id="footer_id2">
    &copy; 2011 The Good Thymes Virtual Grocery9999999999999999
</div>